package cn.tedu.service.impl;

import cn.tedu.mapper.NovelMesMapper;
import cn.tedu.service.NovelMesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NovelMesServiceImpl implements NovelMesService {
    @Autowired
    private NovelMesMapper novelMesMapper;

    @Override
    public String getAuthorById(Integer id) {
        String author = novelMesMapper.getAuthorById(id);
        return author;
    }

    @Override
    public String getSynopsisById(Integer id) {
        String synopsis = novelMesMapper.getSynopsisById(id);
        return synopsis;
    }

    @Override
    public Integer getTextById(Integer id) {
        Integer text = novelMesMapper.getTextById(id);
        return text;
    }
}
